import request from '@/utils/request'



// 获取用户列表
export function getPermissionListPage(pageNum,pageSize) {
  return request({
    url: '/permission/list/' + pageNum + '/' + pageSize,
    method: 'get',
  })
}


// 获取用户列表
export function getPermissionList() {
  return request({
    url: '/permission/list',
    method: 'get',
  })
}


// 修改权限
export function updatePermission(permissionId,permission) {
  return request({
    url:'/permission/' + permissionId,
    method:'put',
    data: permission
  })
}

// 添加权限
export function savePermission(permission) {
  return request({
    url:'/permission',
    method:'post',
    data: permission
  })
}

// 删除权限
export function deletePermission(permissionId) {
  return request({
    url:'/permission/' + permissionId,
    method:'delete'
  })
}

